﻿using System;
using System.Collections.Generic;
using System.Text;

namespace MT.eVotePRS.Device
{
    public static class ARSCommandCode
    {
        public const int READ_TIMEOUT = 8;

        public const byte START = 0xAA;
        public const byte END = 0x66;
        public const byte NULL = 0x00;

        public const byte DISPLAY_RID = 0x00;
        public const byte NO_DISPLAY_RID = 0x02;

        #region PC -> Receiver -> Handset
        public const byte CHECK_RECEIVER_VERSION = 0x00;
        public const byte CHANGE_RECEIVER_CHANNEL_NO = 0x06;
        
        // Handset in JoinMode
        public const byte HANDSET_CHANGE_ID = 0x13;
        public const byte HANDSET_CHANGE_PWD = 0x27;
        public const byte HANDSET_SINGLE_ANSWER = 0x28;
        public const byte HANDSET_MULTI_ANSWER = 0x29;
        #endregion

        #region Handset -> PC
        public const byte STUDENT_ANSWERED = 0x67; // SEND_STRING
        public const byte TEACHER_CONTROL = 0x67;
        public const byte TEACHER_EXAM_MODE = 0x69;
        public const byte STUDENT_JOIN = 0x6C;  // SEND_USER_ID
        #endregion
    }
}
